<?php include(VIEWSPATH."/common/header.php") ?>
<script>
	$(document).ready(function(){
		var type="<?php echo $type ?>";
		console.log("type" + type);
		if (type == "" || type == "view"){
			$("#area_laysodomoi").hide();
			$("#area_xem_sodomoi").show();
		}else{
			$("#area_laysodomoi").show();
			$("#area_xem_sodomoi").hide();
		}
	});
</script>




<div id="area_create">
	<form action="<?php echo base_url('user/sodo')?>" method="post">
	<table width ="400">
		<tr>
			<td>Số Đo 1</td>
			<td><input type="text" name="txt_sodo1" value="<?php echo  $sodo->sodo1 ?>"></input></td>
			<td>Hình ảnh minh hoạ 1</td>
		</tr>
		<tr>
			<td>Số Đo 2</td>
			<td><input type="text" name="txt_sodo2" value="<?php echo  $sodo->sodo2 ?>" ></input></td>
			<td>Hình ảnh minh hoạ 2</td>
		</tr>
		<tr>
			<td colspan="3" >
				<input type="submit" value="Thay Đổi"> </input>
			</td>
		</tr>
	</table>
	</form>
</div>

<div id="area_view">
	<table width ="400">
		<tr>
			<td>Số Đo 1</td>
			<td><?php echo  $sodo->sodo1 ?></td>
			<td>Hình ảnh minh hoạ 1</td>
		</tr>
		<tr>
			<td>Số Đo 2</td>
			<td><?php echo  $sodo->sodo2 ?></input></td>
			<td>Hình ảnh minh hoạ 2</td>
		</tr>
		<tr>
			<td colspan="3" >
				<?php echo isset($aodai_ordering) ? "<span class='link' onclick=\" window.location='".base_url('user/order')."'\" >Quay lại trang đặt hàng </span>" : ''?>
				<input type="submit" value="Sửa" onclick="window.location='<?php echo base_url('user/sodo?type=edit')?>'"> </input>
			</td>
		</tr>
	</table>
</div>
<?php include(VIEWSPATH."/common/footer.php") ?>
